<?php
require_once("../config.php");
require_once("../model/DB.php");
require_once("../model/Kid.php");
	$kids = Kid::getKid();

			
			
?>
<table>
	<thead>
		<tr><td>Name</td><td>Age</td><td>Grade</td><td>Class</td><td>Parent</td><td>Action</td></tr>
	</thead>
	<tbody>
		<?php
		if($kids){

			foreach($kids as $kid){
				?>
				<tr><td><?php echo $kid['name']; ?></td><td><?php echo $kid['age']; ?></td><td><?php echo $kid['grade'] ?></td><td><?php echo $kid['class'] ?></td><td><?php echo $kid['username'] ?></td><td>edit delete</td></tr>
				<?php 
			}
		}
		?>
	</tbody>
</table>